#include <stdio.h>
#include <math.h> 
int main(void){
	int m,n,a,b,c,i;
	printf("plz enter the lower and upper bound:\n");
	scanf("%d%d",&m,&n);
	for(i=m;i<=n;i++){
		a=i%10;
		b=i%100-a;
		c=i/100;
		if(pow(a,3)+pow(b,3)+pow(c,3)==i){
			printf("%d\n",i);
		}
	}
	return 0;
} 
